<script setup lang="ts">
import { h, onMounted, render } from "vue";
import SealMessage from "@/components/message/message.vue";

// <SealMessage type="error">登录失败</SealMessage>
// <div id="one" class="two">我是div</div>

const show = () => {
  const vNode = h(SealMessage, { type: "warning" }, "warning");
  render(vNode, document.querySelector(".box")!);
};
</script>

<template>
  <button @click="show">按钮</button>
  <div class="box"></div>
</template>

<style lang="less" scoped></style>
